Skip to main content

Accounts_Serviceunit Tables

The accounts_serviceUnit_latest and accounts_serviceUnit_changelog tables stores the data of all service units, including address, services offered and network terms.


🔹 Standard Columns​

Column NameData TypeNullableDescription
document_nameSTRINGYESName of the document record.
document_event_idSTRINGYESUnique identifier for the document event.
document_timestampTIMESTAMPYESTimestamp when the document was recorded.
document_operationSTRINGYESOperation type on the document (e.g., insert, update, delete).
document_idSTRINGYESPrimary identifier of the document.
accountIdSTRINGYESID associated with the account.
accountSystemReferenceSTRINGYESReference to the system the account belongs to.
atHomeBOOLYESIndicates if the service is available at home.
billingRefIdSTRINGYESReference ID for billing purposes.
boschStatusSTRINGYESStatus related to Bosch integration.
collectAndDeliverBOOLYESIndicates if collect and deliver service is available.
companyRegistrationNumberSTRINGYESOfficial company registration number.
courtesyCarBOOLYESIndicates if a courtesy car is provided.
createChargebeeCustomerBOOLYESFlag to create a customer in Chargebee.
descriptionSTRINGYESDescription of the entity or service.
faGarageIdINT64YESIdentifier for the garage.
groupIdSTRINGYESIdentifier for the group.
independentBOOLYESIndicates if the entity operates independently.
isOnVISNBOOLYESIndicates if the entity is on VISN network.
lastDesktopAuditSTRINGYESDate of the last desktop audit.
lastPhysicalAuditSTRINGYESDate of the last physical audit.
lastUpdatedINT64YESTimestamp of the last update.
merchantFeeSTRINGYESFee charged by the merchant.
nameSTRINGYESName of the entity.
networkSTRINGYESNetwork to which the entity belongs.
networkLevelSTRINGYESLevel within the network hierarchy.
nominatedDealerNameSTRINGYESName of the nominated dealer.
notesSTRINGYESAdditional notes or comments.
region1STRINGYESPrimary region of operation.
region2STRINGYESSecondary region of operation.
region3STRINGYESTertiary region of operation.
serviceUnitIdSTRINGYESIdentifier for the service unit.
supplierGroupIdSTRINGYESIdentifier for the supplier group.
supplierGroupNameSTRINGYESName of the supplier group.
supplierIdSTRINGYESIdentifier for the supplier.
tandcSTRINGYESTerms and conditions.
faGarageGroupIdSTRINGYESIdentifier for the garage group.
financeSupplierIdSTRINGYESIdentifier for the finance supplier.
paybillSTRINGYESPaybill number or identifier.
useHeadOfficeNameAndAddressBOOLYESIndicates if head office name and address should be used.
vatRegistrationNumberSTRINGYESVAT registration number.
servingProximityINT64YESProximity within which services are offered.

🔸 Struct Columns​

_geoloc​

Column NameData TypeNullableDescription
latFLOAT64YESGeographical coordinates - latitude
lngFLOAT64YESGeographical coordinates - longitude

address​

Column NameData TypeNullableDescription
address1STRINGYESLine 1 of the address
address2STRINGYESLine 2 of the address
address3STRINGYESLine 3 of the address
citySTRINGYESCity name
countySTRINGYESCounty name
latFLOAT64YESLatitude coordinate
lngFLOAT64YESLongitude coordinate
numberSTRINGYESHouse or building number
postcodeSTRINGYESPostal/ZIP code

bidValidFor​

Column NameData TypeNullableDescription
bidValidForINT64YESDuration for which the bid is valid

bidWithin​

Column NameData TypeNullableDescription
bidWithinINT64YESTimeframe within which the bid should be placed

billingSubscriptionData​

Column NameData TypeNullableDescription
BTSTRINGYESBilling Tag BT
BUSTRINGYESBilling Tag BU
BVSTRINGYESBilling Tag BV
BWSTRINGYESBilling Tag BW
CTSTRINGYESBilling Tag CT
CUSTRINGYESBilling Tag CU
CVSTRINGYESBilling Tag CV
CWSTRINGYESBilling Tag CW

cancellationAllowedBefore​

Column NameData TypeNullableDescription
cancellationAllowedBeforeINT64YESTime before which cancellation is allowed

contact​

Column NameData TypeNullableDescription
bookingPhoneNumberSTRINGYESPhone number for booking
contactNumber1STRINGYESSecondary contact number
emailSTRINGYESEmail address
faxNumberSTRINGYESFax number
primaryPhoneNumberSTRINGYESPrimary contact phone number

location​

Column NameData TypeNullableDescription
_latitudeFLOAT64YESLatitude of the location
_longitudeFLOAT64YESLongitude of the location

log​

Column NameData TypeNullableDescription
modifiedBySTRINGYESWho last modified the entry
modifiedTimestamp._secondsINT64YESModification timestamp in seconds
modifiedTimestamp._naYESsecondsINT64YESModification timestamp in naYESseconds

override​

Column NameData TypeNullableDescription
isEnabledBOOLYESIndicates if override is enabled

restrictions​

Column NameData TypeNullableDescription
maxHeightINT64YESMaximum height allowed
maxLengthINT64YESMaximum length allowed
maxWeightINT64YESMaximum weight allowed

servingRadius​

Column NameData TypeNullableDescription
radiusSTRINGYESServiceable radius in distance

supplementaryServices​

Column NameData TypeNullableDescription
NTDBOOLYESFlag for NTD
isOfferedBOOLYESWhether the service is offered
leadTimeINT64YESLead time required
notesSTRINGYESAdditional notes
radiusINT64YESService radius
typeINT64YESType code
typeValueSTRINGYESDescription of the type

timestamp​

Column NameData TypeNullableDescription
_secondsINT64YESTimestamp in seconds
_naYESsecondsINT64YESNaYESsecond part of timestamp

unitStatus​

Column NameData TypeNullableDescription
statusSTRINGYESCurrent unit status

updatedTimeStamp​

Column NameData TypeNullableDescription
_secondsINT64YESUpdate time in seconds
_naYESsecondsINT64YESNaYESsecond part of update

commercialTerms​

Column NameData TypeNullableDescription
rebate.maskedSTRINGYESMasked rebate value
rebate.rawFLOAT64YESRaw rebate amount
rebateAmount.maskedSTRINGYESMasked rebate amount
rebateAmount.rawFLOAT64YESRaw rebate amount
rebateAmount.valueINT64YESRebate amount value

quickBooks​

Column NameData TypeNullableDescription
errorcodeSTRINGYESError code from QuickBooks integration

featureFlags​

Column NameData TypeNullableDescription
mandatoryTyreReadingsBOOLYESWhether tyre readings are mandatory

openingHours​

Column NameData TypeNullableDescription
saturday.customOpeningSTRINGYESSaturday opening time
saturday.customClosingSTRINGYESSaturday closing time
sunday.customOpeningSTRINGYESSunday opening time
sunday.customClosingSTRINGYESSunday closing time
sunday.isOpenBOOLYESIs open on Sunday
weekday.customOpeningSTRINGYESWeekday opening time
weekday.customClosingSTRINGYESWeekday closing time

diNetworkTerms​

Column NameData TypeNullableDescription
commercialTermsSTRUCTYESCommercial terms, including contract dates and rebates
↳ contractEndDateSTRINGYESEnd date of the contract
↳ contractStartDateSTRINGYESStart date of the contract
↳ rebateSTRUCTYESRebate details
↳↳ maskedSTRINGYESMasked rebate value
↳↳ rawFLOAT64YESActual rebate value
↳ rebateAmountSTRUCTYESRebate amount information
↳↳ maskedSTRINGYESMasked rebate amount
↳↳ rawFLOAT64YESRaw rebate amount
↳↳ valueINT64YESRebate amount value
fluidRatesARRAY STRUCTYESList of fluid rate entries
↳ effectiveDateTIMESTAMPYESDate when rate becomes effective
↳ isAvailableBOOLYESAvailability of the fluid service
↳ rateFLOAT64YESFluid rate
↳ typeINT64YESType identifier
↳ typeValueSTRINGYESDescriptive value of the type
fnpSTRUCTYESFNP-related configurations
↳ fnpBandSTRINGYESBand type for FNP
↳ isEnabledBOOLYESIndicates if FNP is enabled
franchisesARRAY STRUCTYESList of franchise entries
↳ labelSTRINGYESFranchise label
↳ labourRatesARRAY STRUCTYESLabour rates per franchise
↳↳ effectiveDateTIMESTAMPYESEffective date of labour rate
↳↳ isAvailableBOOLYESAvailability status
↳↳ rateFLOAT64YESLabour rate amount
↳↳ typeINT64YESLabour type ID
↳↳ typeValueSTRINGYESLabour type label
↳↳ vehicleCategoryTypeINT64YESType of vehicle category
↳ partsDiscountFLOAT64YESDiscount on parts
groupIdSTRINGYESGroup ID of the network
independentBOOLYESIs the entity independent
motRatesARRAY STRUCTYESMOT rate entries
↳ classTypeINT64YESMOT class type
↳ classTypeValueSTRINGYESMOT class label
↳ effectiveDateTIMESTAMPYESEffective date of MOT rate
↳ isAvailableBOOLYESAvailability of MOT
↳ rateFLOAT64YESMOT rate amount
paybillSTRINGYESPaybill identifier
servicesARRAY STRUCTYESServices offered in network
↳ isEnabledBOOLYESWhether service is enabled
↳ labelSTRINGYESService label
↳ serviceNameSTRINGYESInternal name of the service
↳ typeSTRINGYESService type ID
↳ typeValueINT64YESService type description
supplierIdSTRINGYESSupplier ID of the entity
tyreAncillaryRatesARRAY STRUCTYESAncillary tyre service rates
↳ effectiveDateTIMESTAMPYESEffective date of rate
↳ isAvailableBOOLYESAvailability of service
↳ rateFLOAT64YESService rate
↳ typeINT64YESService type ID
↳ typeValueSTRINGYESService type label
vehicleTypesARRAY STRUCTYESSupported vehicle types
↳ isAvailableBOOLYESAvailability status
↳ labelSTRINGYESVehicle label
↳ typeSTRINGYESVehicle type ID
↳ typeValueINT64YESVehicle type label
wheelAlignmentRatesARRAY STRUCTYESWheel alignment rate data
↳ effectiveDateTIMESTAMPYESEffective date
↳ isAvailableBOOLYESAvailability status
↳ rateFLOAT64YESAlignment rate
↳ typeINT64YESType identifier
↳ typeValueSTRINGYESType label
vehicleServicesSTRUCTYESDetailed vehicle service categories
↳ ancillaryEquipment.servicingAndRepairsBOOLYESAvailability of servicing and repairs
↳ bodywork.smartRepairsBOOLYESAvailability of smart repairs
↳ engine.rebuildBOOLYESWhether engine rebuild is available
↳ lockAndKeys.replacementKeysAndDoorLocksBOOLYESSupport for replacement keys/locks
↳ safetyAndCompliance.lolerWeightTestingBOOLYESLOLER and weight testing availability
↳ specialisedRepairs.dpfFiltersBOOLYESDPF filter repair availability
↳ specialisedRepairs.misFuelingBOOLYESMisfueling support availability

🔸 Array Columns​

Array of STRUCT

ancillaries​

Column NameData TypeNullableDescription
isEnabledBOOLYESWhether the ancillary is enabled
labelSTRINGYESDisplay label for the ancillary
typeINT64YESType ID of the ancillary
typeValueSTRINGYESType name or description

facilities​

Column NameData TypeNullableDescription
isAvailableBOOLYESWhether the facility is available
labelSTRINGYESName of the facility
typeINT64YESFacility type code

services​

Column NameData TypeNullableDescription
isEnabledBOOLYESWhether the service is enabled
labelSTRINGYESName of the service
typeSTRINGYESType/category of service

wheelAlignmentRates​

Column NameData TypeNullableDescription
isAvailableBOOLYESWhether the rate is available
rateFLOAT64YESAlignment service rate
typeValueSTRINGYESType of alignment service
typeINT64YESType ID
effectiveDateSTRINGYESDate when rate becomes effective